{{=$wz::action('header', 'static');}}

<!-- BEGIN PAGE CONTAINER -->
        <section id="maincontainer">
        
            <!-- BEGIN PAGE HEADER (NORMAL) -->
            <div id="fixed_page header" >
                
                <div class="fixed_page head">
                    <h1>_("Documents")_</h1>
                </div> <!-- end div .fixed_page.head -->
                
            </div>
            <!-- END PAGE HEADER (NORMAL) -->
            
			<!-- BEGIN BREADCRUMB (NORMAL) -->
			<!--div class="fixed_page breadcrumb">
				<ul class="pagewrap">
					<li><a href="dashboard.html">Dashboard</a></li>
					<li>Calendar</li>
				</ul>                                   
			</div--><!-- end div .fixed_page.breadcrumb -->
			<!-- END BREADCRUMB (NORMAL) -->
                
			<!-- BEGIN PAGE CONTENT (NORMAL)  -->
			<div class="fixed_page content">	
                <div class="box grid_16">
					<div class="header">_("Gestion de vos documents")_
						<span class="tools">
							<ul class="buttonlist">
								<li><a href="#" class="icon toggle"></a></li>
							</ul>
						</span>
					</div>
					<div class="toggle_container">					
						<div class="block">
							<div class="section">
								<div id="docs"></div>
							</div>
						</div>
					</div>
				</div>
            	<div class="clear"></div><!-- CLEAR BOTH -->
    
			</div><!-- end div .fixed_page.content -->
			<!-- END PAGE CONTENT (NORMAL) -->
        
        </section><!-- end section .maincontainer -->
        <!-- END PAGE CONTAINER -->
        <!-- BEGIN JAVASCRIPTS FOR THIS PAGE -->   
	<script src="{{=URL_SITE}}js/elfinder/js/elfinder.min.js"></script>
    <script src="{{=URL_SITE}}js/elfinder/js/i18n/elfinder.fr.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" charset="utf-8">
		$().ready(function() {
			
			var f = $('#docs').elfinder({
				url : '{{=URL_SITE}}js/elfinder/connectors/php/connector.php?idUser={{=getvar('idUser')}}&idPartner={{=getvar('idPartner')}}&key={{=getvar('key')}}&rootUrl={{=base64_encode(URL_SITE . 'files/' . getvar('idPartner') . '/')}}',
				lang : 'fr',
                places: '',
				toolbar : [
					['back', 'reload'],['mkdir','copy','paste','upload'],['remove','rename'],['icons','list']
				],

				// dialog : {
				// 	title : 'File manager',
				// 	height : 500
				// }

				// Callback example
				//editorCallback : function(url) {
				//	if (window.console && window.console.log) {
				//		window.console.log(url);
				//	} else {
				//		alert(url);
				//	}
				//},
				//closeOnEditorCallback : true
			})
			// window.console.log(f)
			$('#close,#open,#dock,#undock').click(function() {
				$('#docs').elfinder($(this).attr('id'));
			})
			
		})
	</script>
    <!-- END JAVASCRIPTS FOR THIS PAGE --> 
{{=$wz::action('footer', 'static');}}